Make xen daemon startup more robust.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 10 Aug 2005 09:46:51 +0000 (09:46 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 10 Aug 2005 09:46:51 +0000 (09:46 +0000)
commitc2bf763b7fdcb53ab63954975890aa786e8074cc
tree27b760f69c79a258b8f48e83112e8d8005048989
parent1b8d0b88241100f67f7cd4c7e07f881c9fd3844e
Make xen daemon startup more robust.
1) make xenconsoled exit gracefully if xcs dies
2) daemonize xenstored before binding to xenstored socket
3) wait to close stdio in xenstored until we're ready to accept
connections (so that PID=`xenstored --output-pid` doesn't return until
it's ready to accept connections)
4) updates tools/misc/xend for these changes
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustycorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/console/daemon/io.c
tools/console/daemon/utils.c
tools/misc/xend
tools/xenstore/utils.c
tools/xenstore/utils.h
tools/xenstore/xenstored_core.c